<!doctype HTML>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script src="../assert_selection.js"></script>
<script>
// This tests Insert{Un}OrderedList on a range selection that is entirely within
// one list.
selection_test(
  [
    '<div contenteditable>',
      '<ol>',
        '<li><span>a^B</span></li>',
        '<li>CD</li>',
        '<li>EF</li>',
        '<li><span>G|h</span></li>',
      '</ol>',
      '<ol><li>ij</li></ol>',
    '</div>',
  ],
  'insertOrderedList',
  [
    '<div contenteditable>',
      'a^B<br>CD<br>EF<br>G|h<br>',
      '<ol><li>ij</li></ol>',
    '</div>',
  ],
  'Remove list from range selection');
</script>
